package org.dromara.finance.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 采购合同对象 purchase_contract
 *
 * @author xxy
 * @date 2025-08-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("purchase_contract")
public class PurchaseContract extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 关联销售合同号
     */
    private Long saleContractId;

    /**
     * 采购合同号
     */
    private String purchaseContractNum;

    /**
     * 项目名称
     */
    private String projectName;

    /**
     * 运输路段
     */
    private Long transportSection;

    /**
     * 供应商
     */
    private Long supplierId;

    /**
     * 签订日期
     */
    private Date signDate;

    /**
     * 签订部门
     */
    private Long signDept;

    /**
     * 签订员工
     */
    private Long signStaffId;

    /**
     * 原币价税合计
     */
    private BigDecimal originalTotalAmount;

    /**
     * 原币无税金额
     */
    private BigDecimal originalAmount;

    /**
     * 原币税额
     */
    private BigDecimal originalTaxedAmount;

    /**
     * 币种
     */
    private Long currency;

    /**
     * 汇率
     */
    private BigDecimal exchangeRate;

    /**
     * 本币价税合计
     */
    private BigDecimal localTotalAmount;

    /**
     * 本币无税金额
     */
    private BigDecimal localAmount;

    /**
     * 本币税额
     */
    private BigDecimal localTaxedAmount;

    /**
     * 转关税
     */
    private BigDecimal transferTaxedAmount;

    /**
     * 保险费
     */
    private BigDecimal insuranceAmount;

    /**
     * 押车费
     */
    private BigDecimal escortAmount;

    /**
     * 备注
     */
    private String remark;


}
